#! /bin/bash

# 初始化docker网络
docker_network=$(docker network ls | grep dns)
echo "query network ${docker_network}"
if [ "$docker_network" == "" ]; then
  echo "create docker network dns: $(docker docker network create --driver bridge --subnet 172.5.0.0/16 --gateway 172.5.0.1 dns)"
fi

# docker network create --driver bridge --subnet 172.5.0.0/16 --gateway 172.5.0.1 dns